import request from '@/utils/request'

export const reqTradeMarkList = (page, limit) => request({
    url: `/admin/product/baseTrademark/${page}/${limit}`, method: 'get'
})


export const reqAddOrUpdateTradeMark = (tradeMark) => {
    if (tradeMark.id) {
        // 修改品牌:/admin/product/baseTrademark/update
        return request({ url: '/admin/product/baseTrademark/update', method: 'put', data: tradeMark })
    } else {
        // 新增品牌:/admin/product/baseTrademark/save
        return request({ url: '/admin/product/baseTrademark/save', method: 'post', data: tradeMark })

    }
}


export const reqDeleteTradeMark = (id) => request({
    url: `/admin/product/baseTrademark/remove/${id}`, method: 'delete'
})



